Skip to content

refactor: extract formatting options into DisplayIteratorOptions - #13

Merged
drmingdrmer merged 1 commit into
databendlabs:mainfrom
drmingdrmer:011-display-braces
Mar 30, 2026
Merged

refactor: extract formatting options into DisplayIteratorOptions#13
drmingdrmer merged 1 commit into
databendlabs:mainfrom
drmingdrmer:011-display-braces

Conversation

@drmingdrmer

Copy link
Copy Markdown
Member

Changelog

refactor: extract formatting options into DisplayIteratorOptions

Move the formatting fields (limit, separator, braces, ellipsis, element
prefix/suffix, show_count) out of DisplayIntoIter into a dedicated
DisplayIteratorOptions struct. This separates the data source concern
(what to iterate) from the presentation concern (how to format), making
the options reusable and the iterator struct smaller.


  • Improvement

@xp-trumpet xp-trumpet left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xp-trumpet reviewed 3 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on drmingdrmer).

@drmingdrmer
drmingdrmer force-pushed the 011-display-braces branch 2 times, most recently from dccc9c3 to b09099c Compare March 30, 2026 13:36

@xp-trumpet xp-trumpet left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xp-trumpet reviewed 4 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on drmingdrmer).

Move the formatting fields (limit, separator, braces, ellipsis, element
prefix/suffix, show_count) out of `DisplayIntoIter` into a dedicated
`DisplayIteratorOptions` struct. This separates the data source concern
(what to iterate) from the presentation concern (how to format), making
the options reusable and the iterator struct smaller.

@xp-trumpet xp-trumpet left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xp-trumpet reviewed 1 file and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on drmingdrmer).

@drmingdrmer
drmingdrmer merged commit b897a42 into databendlabs:main Mar 30, 2026
4 checks passed
@drmingdrmer
drmingdrmer deleted the 011-display-braces branch March 30, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants